package com.InheritInterface;

/**
 * ClassName: CollegeStudent
 * Package:
 * Description:
 *
 * @Author 软件232班——欧阳昊淼
 * @Create 2024/9/9 18:17
 * @Version 17.0.2
 */
public class CollegeStudent extends Student{
    private String name;
    private int id;
    private String grade;

    public CollegeStudent(String grade, int id, String name) {
        this.grade = grade;
        this.id = id;
        this.name = name;
    }

    public void CollegeStudent() {
        String agrade = "大一";
        int id = 20230001;
        String name = "小明";
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "CollegeStudent{" +
                "grade='" + grade + '\'' +
                ", name='" + name + '\'' +
                ", id=" + id +
                '}';
    }
}
